import React, { useState } from "react";

function useSearch() {
  const [inputVal, setInputVal] = useState("");
  const onSearch = () => {
    console.log(inputVal);
  };
  return { inputVal, setInputVal, onSearch };
}

export default useSearch;
